package com.gtq.uhome.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@ApiModel
@EqualsAndHashCode()
public class Delivery {

    @ApiModelProperty(value ="商品派送id" )
    private Integer deliveryId;

    @ApiModelProperty(value = "收银台单号")
    private String cashNumber;

    @ApiModelProperty(value = "流水单号")
    private String serialNumber;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "派送时间")
    private Timestamp deliverTime;

    @ApiModelProperty(value = "派送员id")
    private Integer courierId;

    @ApiModelProperty(value = "签收状态")
    private String signStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "站点派送时间")
    private Timestamp sendTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "派送员取货时间")
    private Timestamp pickTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "派送员完成时间")
    private Timestamp finishTime;

    @ApiModelProperty(value = "状态")
    private String statusCode;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "流水时间")
    private Timestamp streamTime;
}